home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 4_0 / TIFF_WIN / INIT_DEM.C < prev    next >
C/C++ Source or Header  |  1990-04-25  |  627b  |  30 lines

  1. #include "my color.h"
  2. init_color_demo()        /* initialize all the managers needed, and prepare the 
  3.                             program for execution */
  4. {
  5. short i;
  6.  
  7.     InitGraf(&thePort);
  8.  
  9.     InitFonts();
  10.     FlushEvents(everyEvent,0);
  11.     InitWindows();
  12.     InitMenus();
  13.     TEInit();
  14.     InitDialogs(nil);
  15.     InitCursor();
  16.     
  17.     for(i = 0; i < 5; i++)
  18.         MoreMasters();    /* be prepared to do some heavy duty RAM allocation! */
  19.  
  20.     MaxApplZone();
  21.         
  22.     SetUpMenus(); 
  23.     screenRect = screenBits.bounds;
  24.     SetRect(&dragRect,4,24,screenRect.right-4,screenRect.bottom-4);
  25.     doneFlag = false;
  26.  
  27.     menusOK = false;
  28.     nextWNum = 1;        
  29.     SetRect (&nextWRect,leftEdge,topEdge,rightEdge,botEdge);
  30. }